home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1786 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 67 72 61 70 68 69 63 | 73 2e 61 6c 67 6f 72 69 |.graphic|s.algori|
|00000020| 74 68 6d 73 2c 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |thms,com|p.lang.c|
|00000030| 2c 73 63 69 2e 69 6d 61 | 67 65 2e 70 72 6f 63 65 |,sci.ima|ge.proce|
|00000040| 73 73 69 6e 67 0a 50 61 | 74 68 3a 20 77 61 76 65 |ssing.Pa|th: wave|
|00000050| 2e 73 63 61 72 21 75 73 | 65 6e 65 74 0a 46 72 6f |.scar!us|enet.Fro|
|00000060| 6d 3a 20 4b 61 70 20 53 | 68 69 77 72 61 6d 20 3c |m: Kap S|hiwram <|
|00000070| 39 35 73 68 69 77 72 61 | 40 77 61 76 65 2e 73 63 |95shiwra|@wave.sc|
|00000080| 61 72 2e 75 74 6f 72 6f | 6e 74 6f 2e 63 61 3e 0a |ar.utoro|nto.ca>.|
|00000090| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 32 44 20 |Subject:| Re: 2D |
|000000a0| 69 6d 61 67 65 20 72 6f | 74 61 74 69 6f 6e 20 70 |image ro|tation p|
|000000b0| 72 6f 62 6c 65 6d 0a 58 | 2d 4e 6e 74 70 2d 50 6f |roblem.X|-Nntp-Po|
|000000c0| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 70 63 32 30 |sting-Ho|st: pc20|
|000000d0| 37 2e 73 63 61 72 33 2e | 75 74 6f 72 6f 6e 74 6f |7.scar3.|utoronto|
|000000e0| 2e 63 61 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |.ca.Cont|ent-Type|
|000000f0| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000100| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 4d |arset=us|-ascii.M|
|00000110| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 44 4c 41 4d |essage-I|D: <DLAM|
|00000120| 47 72 2e 4c 45 4d 40 77 | 61 76 65 2e 73 63 61 72 |Gr.LEM@w|ave.scar|
|00000130| 2e 75 74 6f 72 6f 6e 74 | 6f 2e 63 61 3e 0a 54 6f |.utoront|o.ca>.To|
|00000140| 3a 20 78 69 61 6f 79 69 | 40 6d 6f 7a 61 72 74 2e |: xiaoyi|@mozart.|
|00000150| 62 6d 65 2e 6f 68 69 6f | 2d 73 74 61 74 65 2e 65 |bme.ohio|-state.e|
|00000160| 64 75 0a 53 65 6e 64 65 | 72 3a 20 75 73 65 6e 65 |du.Sende|r: usene|
|00000170| 74 40 77 61 76 65 2e 73 | 63 61 72 2e 75 74 6f 72 |t@wave.s|car.utor|
|00000180| 6f 6e 74 6f 2e 63 61 20 | 28 6e 65 77 73 20 6f 77 |onto.ca |(news ow|
|00000190| 6e 65 72 29 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |ner).Con|tent-Tra|
|000001a0| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001b0| 37 62 69 74 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |7bit.Org|anizatio|
|000001c0| 6e 3a 20 53 63 61 72 62 | 6f 72 6f 75 67 68 20 43 |n: Scarb|orough C|
|000001d0| 6f 6c 6c 65 67 65 2c 20 | 55 20 6f 66 20 54 0a 52 |ollege, |U of T.R|
|000001e0| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 64 65 37 |eference|s: <4de7|
|000001f0| 67 74 24 6a 30 69 40 63 | 68 61 72 6d 2e 6d 61 67 |gt$j0i@c|harm.mag|
|00000200| 6e 75 73 2e 61 63 73 2e | 6f 68 69 6f 2d 73 74 61 |nus.acs.|ohio-sta|
|00000210| 74 65 2e 65 64 75 3e 20 | 3c 34 64 65 63 31 31 24 |te.edu> |<4dec11$|
|00000220| 6a 67 35 40 63 68 61 72 | 6d 2e 6d 61 67 6e 75 73 |jg5@char|m.magnus|
|00000230| 2e 61 63 73 2e 6f 68 69 | 6f 2d 73 74 61 74 65 2e |.acs.ohi|o-state.|
|00000240| 65 64 75 3e 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |edu>.Mim|e-Versio|
|00000250| 6e 3a 20 31 2e 30 0a 44 | 61 74 65 3a 20 54 75 65 |n: 1.0.D|ate: Tue|
|00000260| 2c 20 31 36 20 4a 61 6e | 20 31 39 39 36 20 32 31 |, 16 Jan| 1996 21|
|00000270| 3a 33 31 3a 33 38 20 47 | 4d 54 0a 58 2d 4d 61 69 |:31:38 G|MT.X-Mai|
|00000280| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 31 2e 32 |ler: Moz|illa 1.2|
|00000290| 4e 20 28 57 69 6e 64 6f | 77 73 3b 20 49 3b 20 31 |N (Windo|ws; I; 1|
|000002a0| 36 62 69 74 29 0a 0a 78 | 69 61 6f 79 69 40 62 6d |6bit)..x|iaoyi@bm|
|000002b0| 65 63 67 2e 62 6d 65 2e | 6f 68 69 6f 2d 73 74 61 |ecg.bme.|ohio-sta|
|000002c0| 74 65 2e 65 64 75 20 28 | 58 69 61 6f 79 69 20 57 |te.edu (|Xiaoyi W|
|000002d0| 75 29 20 77 72 6f 74 65 | 3a 0a 3e 4a 75 73 74 20 |u) wrote|:.>Just |
|000002e0| 74 68 6f 75 67 68 74 20 | 49 20 6d 69 67 68 74 20 |thought |I might |
|000002f0| 6d 61 6b 65 20 74 68 69 | 6e 67 73 20 61 20 62 69 |make thi|ngs a bi|
|00000300| 74 20 6d 6f 72 65 20 63 | 6c 65 61 72 0a 3e 68 65 |t more c|lear.>he|
|00000310| 72 65 3a 0a 3e 0a 3e 54 | 68 65 20 46 41 51 20 74 |re:.>.>T|he FAQ t|
|00000320| 61 6c 6b 65 64 20 61 62 | 6f 75 74 20 64 6f 69 6e |alked ab|out doin|
|00000330| 67 20 61 20 72 65 76 65 | 72 73 65 20 72 6f 74 61 |g a reve|rse rota|
|00000340| 74 69 6f 6e 20 74 6f 0a | 3e 61 76 6f 69 64 20 68 |tion to.|>avoid h|
|00000350| 6f 6c 65 73 20 69 6e 20 | 74 68 65 20 72 6f 74 61 |oles in |the rota|
|00000360| 74 65 64 20 69 6d 61 67 | 65 2c 20 77 68 69 63 68 |ted imag|e, which|
|00000370| 20 49 20 66 6f 6c 6c 6f | 77 65 64 2e 0a 3e 54 68 | I follo|wed..>Th|
|00000380| 65 20 71 75 65 73 74 69 | 6f 6e 20 69 73 3a 20 65 |e questi|on is: e|
|00000390| 76 65 6e 20 69 66 20 79 | 6f 75 20 64 6f 20 69 74 |ven if y|ou do it|
|000003a0| 20 74 68 65 20 72 65 76 | 65 72 73 65 20 77 61 79 | the rev|erse way|
|000003b0| 2c 0a 3e 79 6f 75 20 73 | 74 69 6c 6c 20 65 6e 64 |,.>you s|till end|
|000003c0| 20 75 70 20 77 69 74 68 | 20 73 6f 6d 65 20 70 69 | up with| some pi|
|000003d0| 78 65 6c 73 20 74 68 61 | 74 20 66 61 6c 6c 20 6f |xels tha|t fall o|
|000003e0| 75 74 0a 3e 6f 66 20 74 | 68 65 20 72 61 6e 67 65 |ut.>of t|he range|
|000003f0| 20 6f 66 20 74 68 65 20 | 73 6f 75 72 63 65 20 69 | of the |source i|
|00000400| 6d 61 67 65 2e 20 48 6f | 77 20 64 6f 20 79 6f 75 |mage. Ho|w do you|
|00000410| 20 64 65 61 6c 0a 3e 77 | 69 74 68 20 74 68 69 73 | deal.>w|ith this|
|00000420| 20 2d 20 66 6f 72 20 6e | 6f 77 2c 20 49 20 6a 75 | - for n|ow, I ju|
|00000430| 73 74 20 61 72 62 69 74 | 72 61 72 69 6c 79 20 61 |st arbit|rarily a|
|00000440| 73 73 69 67 6e 20 74 68 | 65 6d 0a 3e 74 68 65 20 |ssign th|em.>the |
|00000450| 73 61 6d 65 20 76 61 6c | 75 65 20 61 73 20 74 68 |same val|ue as th|
|00000460| 65 20 62 6f 75 6e 64 61 | 72 79 20 70 69 78 65 6c |e bounda|ry pixel|
|00000470| 73 2e 20 49 73 20 74 68 | 65 72 65 20 61 0a 3e 62 |s. Is th|ere a.>b|
|00000480| 65 74 74 65 72 20 77 61 | 79 3f 0a 0a 48 6d 6d 2c |etter wa|y?..Hmm,|
|00000490| 20 74 6f 20 6b 65 65 70 | 20 69 74 20 69 6e 20 74 | to keep| it in t|
|000004a0| 68 65 20 72 61 6e 67 65 | 20 6f 66 20 74 68 65 20 |he range| of the |
|000004b0| 73 6f 75 72 63 65 20 69 | 6d 61 67 65 2c 20 63 6f |source i|mage, co|
|000004c0| 75 6c 64 6e 27 74 20 79 | 6f 75 20 75 73 65 20 41 |uldn't y|ou use A|
|000004d0| 4e 44 20 0a 77 69 74 68 | 20 79 6f 75 72 20 69 6e |ND .with| your in|
|000004e0| 64 65 78 3f 20 20 55 6d | 2c 20 74 68 69 73 20 69 |dex? Um|, this i|
|000004f0| 73 20 68 6f 77 20 49 20 | 75 73 65 20 74 6f 20 64 |s how I |use to d|
|00000500| 6f 20 69 74 20 2d 20 74 | 68 65 20 72 6f 74 61 74 |o it - t|he rotat|
|00000510| 69 6f 6e 20 66 61 69 6c | 65 64 20 0a 62 75 74 20 |ion fail|ed .but |
|00000520| 69 74 20 77 61 73 20 6e | 65 76 65 72 20 6f 75 74 |it was n|ever out|
|00000530| 20 6f 66 20 74 68 65 20 | 72 61 6e 67 65 20 6f 66 | of the |range of|
|00000540| 20 74 68 65 20 73 6f 75 | 72 63 65 20 66 69 6c 65 | the sou|rce file|
|00000550| 2e 20 3a 29 20 20 55 6d | 2c 20 74 68 69 73 20 69 |. :) Um|, this i|
|00000560| 73 20 0a 61 73 73 75 6d | 69 6e 67 20 79 6f 75 27 |s .assum|ing you'|
|00000570| 72 65 20 75 73 69 6e 67 | 20 70 6f 77 65 72 73 20 |re using| powers |
|00000580| 6f 66 20 32 20 66 6f 72 | 20 74 68 65 20 64 69 6d |of 2 for| the dim|
|00000590| 65 6e 73 69 6f 6e 73 20 | 6f 66 20 79 6f 75 72 20 |ensions |of your |
|000005a0| 69 6d 61 67 65 20 6f 66 | 20 0a 63 6f 75 72 73 65 |image of| .course|
|000005b0| 3b 20 69 66 20 79 6f 75 | 27 72 65 20 6e 6f 74 20 |; if you|'re not |
|000005c0| 74 68 65 6e 20 79 6f 75 | 20 6d 69 67 68 74 20 68 |then you| might h|
|000005d0| 61 76 65 20 74 6f 20 73 | 75 66 66 65 72 20 61 20 |ave to s|uffer a |
|000005e0| 64 69 76 69 64 65 20 28 | 65 65 65 6b 29 20 69 2e |divide (|eeek) i.|
|000005f0| 65 2e 20 0a 75 73 65 20 | 74 68 65 20 4d 4f 44 20 |e. .use |the MOD |
|00000600| 6f 66 20 79 6f 75 72 20 | 69 6e 64 65 78 20 69 6e |of your |index in|
|00000610| 74 6f 20 74 68 65 20 69 | 6d 61 67 65 20 61 6e 64 |to the i|mage and|
|00000620| 20 74 68 65 20 64 69 6d | 65 6e 73 69 6f 6e 73 20 | the dim|ensions |
|00000630| 6d 75 6c 74 69 70 6c 69 | 65 64 2e 0a 0a 55 6d 2c |multipli|ed...Um,|
|00000640| 20 61 73 73 75 6d 69 6e | 67 20 79 6f 75 72 20 69 | assumin|g your i|
|00000650| 6d 61 67 65 20 64 69 6d | 65 6e 73 69 6f 6e 73 20 |mage dim|ensions |
|00000660| 61 72 65 20 33 32 78 33 | 32 2c 20 0a 0a 20 20 20 |are 32x3|2, .. |
|00000670| 3b 20 63 61 6c 63 75 6c | 61 74 65 20 74 68 65 20 |; calcul|ate the |
|00000680| 69 6e 64 65 78 20 5b 73 | 69 5d 20 66 69 72 73 74 |index [s|i] first|
|00000690| 0a 20 20 20 61 6e 64 20 | 73 69 2c 20 28 33 32 2a |. and |si, (32*|
|000006a0| 33 32 29 2d 31 0a 20 20 | 20 6c 65 61 20 73 69 2c |32)-1. | lea si,|
|000006b0| 20 5b 69 6d 61 67 65 2b | 73 69 5d 0a 20 20 20 6d | [image+|si]. m|
|000006c0| 6f 76 73 62 0a 0a 49 27 | 6d 20 63 75 72 69 6f 75 |ovsb..I'|m curiou|
|000006d0| 73 20 74 68 6f 75 67 68 | 2e 2e 20 63 6f 75 6c 64 |s though|.. could|
|000006e0| 20 79 6f 75 20 65 78 70 | 6c 61 69 6e 20 68 6f 77 | you exp|lain how|
|000006f0| 20 79 6f 75 20 64 69 64 | 20 74 68 65 20 72 65 76 | you did| the rev|
|00000700| 65 72 73 65 20 72 6f 74 | 61 74 69 6f 6e 3f 20 0a |erse rot|ation? .|
|00000710| 49 20 77 61 73 20 74 68 | 69 6e 6b 69 6e 67 20 61 |I was th|inking a|
|00000720| 62 6f 75 74 20 74 68 69 | 73 20 61 6e 64 20 64 6f |bout thi|s and do|
|00000730| 69 6e 67 20 6c 61 6e 64 | 73 63 61 70 65 73 20 6f |ing land|scapes o|
|00000740| 72 20 66 6c 61 67 73 2e | 20 20 49 74 20 61 6c 77 |r flags.| It alw|
|00000750| 61 79 73 20 68 61 64 20 | 0a 68 6f 6c 65 73 20 69 |ays had |.holes i|
|00000760| 6e 20 69 74 20 73 69 6e | 63 65 20 49 20 77 61 73 |n it sin|ce I was|
|00000770| 20 63 61 6c 63 75 6c 61 | 74 69 6e 67 20 74 68 65 | calcula|ting the|
|00000780| 20 58 20 61 6e 64 20 59 | 20 76 61 6c 75 65 73 20 | X and Y| values |
|00000790| 74 6f 20 70 6c 6f 74 20 | 6f 6e 20 73 63 72 65 65 |to plot |on scree|
|000007a0| 6e 20 0a 62 75 74 20 69 | 66 20 49 20 68 61 64 20 |n .but i|f I had |
|000007b0| 6a 75 73 74 20 64 6f 6e | 65 20 61 20 6c 6f 6f 70 |just don|e a loop|
|000007c0| 20 6f 76 65 72 20 74 68 | 65 20 58 20 61 6e 64 20 | over th|e X and |
|000007d0| 59 20 76 61 6c 75 65 73 | 20 74 68 65 6e 20 74 68 |Y values| then th|
|000007e0| 69 73 20 77 6f 75 6c 64 | 20 6e 6f 74 20 0a 68 61 |is would| not .ha|
|000007f0| 76 65 20 68 61 70 70 65 | 6e 65 64 20 2d 20 69 6e |ve happe|ned - in|
|00000800| 73 74 65 61 64 2c 20 49 | 20 77 6f 75 6c 64 20 68 |stead, I| would h|
|00000810| 61 76 65 20 6a 75 73 74 | 20 63 61 6c 63 75 6c 61 |ave just| calcula|
|00000820| 74 65 64 20 74 68 65 20 | 69 6e 64 65 78 20 69 6e |ted the |index in|
|00000830| 74 6f 20 74 68 65 20 0a | 69 6d 61 67 65 20 61 72 |to the .|image ar|
|00000840| 72 61 79 20 61 6e 64 20 | 63 6f 76 65 72 65 64 20 |ray and |covered |
|00000850| 74 68 65 20 65 6e 74 69 | 72 65 20 61 72 65 61 2e |the enti|re area.|
|00000860| 20 20 54 68 65 20 70 72 | 6f 62 6c 65 6d 20 69 73 | The pr|oblem is|
|00000870| 2c 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 20 0a |, I don'|t know .|
|00000880| 68 6f 77 20 74 6f 20 67 | 65 74 20 74 68 65 20 72 |how to g|et the r|
|00000890| 65 76 65 72 73 65 20 66 | 75 6e 63 74 69 6f 6e 2e |everse f|unction.|
|000008a0| 20 20 49 73 20 69 74 20 | 6a 75 73 74 20 74 68 65 | Is it |just the|
|000008b0| 20 69 6e 76 65 72 73 65 | 3f 0a 0a 0a | inverse|?... |
+--------+-------------------------+-------------------------+--------+--------+